package cn.com.taurus.impl;

import cn.com.taurus.bean.FundHoldBean;
import cn.com.taurus.bean.MyPurseWebBean;
import cn.com.taurus.entity.PowerManager;
import cn.com.taurus.mapper.MyPurseWebBeanMapper;
import cn.com.taurus.service.MyPurseWebBeanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhy
 * @createTime 2021-7-5 20:17:35
 * @remark Service层
 * @version 1.0
 */
@Service
public class MyPurseWebBeanImpl implements MyPurseWebBeanService {
    @Autowired
    MyPurseWebBeanMapper myPurseWebBeanMapper;
    /**
     * 根据id查询信息
     * @param cAccount
     * @return
     */
    @Override
    public MyPurseWebBean selectMyPurseWebData(String cAccount){
        return myPurseWebBeanMapper.selectMyPurseWebData(cAccount);
    }
    @Override
    public List<FundHoldBean> selectMyFundHoldByCaId(Integer caId){
        return myPurseWebBeanMapper.selectMyFundHoldByCaId(caId);
    }
    @Override
    public int updateLuck(MyPurseWebBean myPurseWebBean) {
        return myPurseWebBeanMapper.updateLuck(myPurseWebBean);
    }
}
